Control of toilet bowl fill flow

ABSTRACT

Various systems and methods of controlling the flow of water from a fill valve in a toilet tank to a toilet bowl of a toilet using a bowl fill valve are provided. An inlet of the bowl fill valve is coupled to a bowl fill outlet of the fill valve and the outlet of the bowl fill valve is channeled to the toilet bowl. In illustrative embodiment, a method is provided comprising the steps of determining when the toilet tank has been substantially drained of water during a flush cycle, and opening the bowl fill valve for a predefined period of time after the toilet tank has been substantially drained of water to fill the toilet bowl of the toilet with water. The predefined period of time is less than a total time of the flush cycle.

CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation application of patent applicationentitled “CONTROL OF TOILET BOWL FILL FLOW” having Ser. No. 14/072,089,filed Nov. 5, 2013, which is a divisional application of U.S. patentapplication entitled “CONTROL OF TOILET BOWL FILL FLOW” having Ser. No.11/050,317, filed Feb. 3, 2005, both of which are hereby incorporated byreference in their entireties.

BACKGROUND

Toilets have been a source of wasted water for decades. Specifically, ina typical toilet flush, an amount of water is routed from the waterinlet of a toilet fill valve to the toilet bowl. This flow of watergenerally occurs during the entire flush cycle of a toilet. The toiletbowl is filled by this flow after the toilet tank has emptied during aflush cycle. A problem exists in that the time it takes to fill atypical toilet bowl is much less than the time it takes to refill thetoilet tank during a flush cycle. As a consequence, once the toilet bowlis full during the flush cycle, the flow of water that continues intothe toilet bowl simply goes down the drain. This results in a loss ofbillions of gallons of water each year given the millions of operatingtoilets in existence today. This loss is unacceptable given the watershortages developing in the United States and around the world.

BRIEF DESCRIPTION OF THE SEVERAL VIEWS OF THE DRAWINGS

The invention can be understood with reference to the followingdrawings. The components in the drawings are not necessarily to scale.Also, in the drawings, like reference numerals designate correspondingparts throughout the several views.

FIG. 1 is a diagram illustrating a flush cycle according to an aspect ofthe present invention;

FIG. 2 is a cutaway drawing of portion of a toilet tank of a toilet thatemploys an automated bowl fill system according to an embodiment of thepresent invention;

FIG. 3 is a block diagram of one example of the automated bowl fillsystem employed in the toilet tank of FIG. 2 according to an embodimentof the present invention; and

FIGS. 4A, 4B, and 4C are a flow chart illustrating an example of theoperation of a bowl fill control system executed in the automated bowlfill system of FIG. 3.

DETAILED DESCRIPTION

Referring to FIG.1, shown is a diagram of a flush cycle 100 of a toilet.As shown, the flush cycle 100 begins when an individual “pulls thehandle” of the toilet which causes a flapper within the toilet to pullup and allow water to drain from the toilet tank into the toilet bowl.At the same time, a fill valve within the toilet is activated when thewater level of the toilet drops. The fill valve employs a float thatactivates the fill valve when water drops below a predefined threshold.When in an open state, the fill valve allows water to flow into thetoilet tank.

A first phase 103 of the flush cycle 100 occurs upon the initiation ofthe flush cycle 100 in which the flapper has been raised and the toilettank is drained into the toilet bowl. In the first phase 103, the waterflows out of the toilet tank and into the toilet bowl to wash waste downthe drain of the toilet. At the same time, a float on the fill valvefalls with the level of the water in the tank, thereby opening the fillvalve. When open, an amount of water is directed from the fill valve toan overflow tube that also drains into the toilet bowl. This flow isemployed to refill the toilet bowl after the toilet tank has beenemptied of water during the flush cycle.

When the toilet tank has been emptied of water in the course of a flushcycle 100, then the flapper falls over the opening in the toilet tankand the toilet tank begins to refill. At this point, the flush cycle 100enters a second phase 106 of operation in which the flow of water fromthe fill valve that is directed to the overflow tube refills the toiletbowl. Thus, during the second phase 106 of the flush cycle 100, thetoilet bowl and the toilet tank are simultaneously refilled by the fillvalve within the toilet tank. For a typical toilet, the toilet bowl isrefilled in a shorter period of time than it takes to refill the entiretoilet tank.

When the toilet bowl is full, then the flush cycle 100 proceeds to thethird phase 109 of the flush cycle in which the toilet tank continues tobe filled and water is continually applied to the toilet bowl throughthe overflow tube at the same time. However, since the toilet bowl hasalready been filled, this water is wasted as it simply flows down thedrain. In this third phase 109, the flow of water employed to refill thetoilet bowl is entirely wasted and continues to be wasted until thetoilet tank is full and the fill valve is shut off when the toilet tankis full by operation of the float associated with the fill valve. Thusit is seen that in the first phase and the third phase of a flush cycle,that the flow of water employed to refill the toilet bowl is essentiallywasted as the water simply flows down the drain. Given the millions oftoilets in operation in the United States alone, this translates into astaggering loss of water.

Referring next to FIG. 2, shown is cutaway view of a portion of a toilettank 120 according to an embodiment of the present invention. Inside thetoilet tank 120 is a fill valve 123. The fill valve 123 includes a waterinlet 126 that is connected to a water source. The fill valve 123 alsoincludes water outlets 129 that supply water to the toilet tank 120during the flush cycle 100. The fill valve 123 also includes a float 133that opens or closes the fill valve 123 based upon the level of waterwithin the toilet tank 120.

The fill valve 123 further includes a bowl fill outlet 136. The bowlfill outlet 136 supplies a flow of water that is employed to refill thetoilet bowl of the toilet during a flush cycle 100. The bowl fill outlet136 is coupled to an inlet of an automated bowl fill system 140 by wayof a tube 143. An outlet of the automated bowl fill system 140 iscoupled to an overflow tube 146. The overflow tube 146 directs waterinto the toilet bowl as can be appreciated. Water flowing out of theoutlet of the automated bowl fill system 140 is routed to the overflowtube 146 by way of a tube 149.

The automated bowl fill system 140 is suspended in the toilet tank 120by virtue of a bracket 153. In one embodiment, the automated bowl fillsystem 140 includes, for example, a push button 156, an LED readout 159or other type of display device, a photo sensor 163, and an alarmspeaker 166. The automated bowl fill system 140 also includes a networkinterface port 169 that may be coupled to a network such as, forexample, the Internet, intranets, wide area networks (WANs), local areanetworks, wireless networks, or other suitable networks, etc., or anycombination of two or more such networks.

During the operation of a toilet to which the toilet tank 120 isattached, the user may initiate the flush cycle 100 by pulling a handleor by manipulating some other initiation device as can be appreciated bythose with ordinary skill in the art. The flapper within the toilet tank120 is pulled up by the action of the user and water begins to drain outof the toilet tank 120 and into the toilet bowl as can be appreciated.As the water level within the toilet tank 120 drops, the float 133 fallsthereby opening the fill valve 123. When the fill valve 123 opens, waterflows into the toilet tank 120 through the water outlets 129. Also,water attempts to flow out of the bowl fill outlet 136 and into theautomated bowl fill system 140.

The automated bowl fill system 140 determines when the toilet tank 120has been substantially drained of water during the flush cycle 100. Atthe time that the toilet tank 120 has been substantially drained ofwater, the automated bowl fill system 140 opens up a bowl fill valveincluded therein for a predefined period of time to fill the toilet bowlof the toilet with water. In this respect, the predefined period of timeis less than the total time of the flush cycle 100 and is also less thanthe total time it takes to fill the toilet tank 120 with water.

The automated bowl fill system 140 opens the bowl fill valve for apredefined period of time needed to fill the toilet bowl such that noexcess water is supplied to the toilet bowl beyond that needed to fillthe toilet bowl so that no water is wasted down the drain. In order todetermine when the flapper has gone down and that the toilet tank 120has been substantially drained of water, the automated bowl fill system140 may employ various devices to track the period of time it takes forthe water to substantially drain out of the toilet tank 120 with atimer. Alternatively, the automated bowl fill system 140 may detect whenthe water level within the toilet tank 120 reaches the bottom such thatthe toilet tank 120 is substantially drained of water.

In this respect, in one embodiment, the automated bowl fill system 140initiates the operation of a timer at the start of a flush cycle 100.The automated bowl fill system 140 knows that the flush cycle hasstarted by virtue of detecting a pressure experienced at the inlet ofthe automated bowl fill system 140 using a pressure sensor.Alternatively, the automated bowl fill system 140 may employ a waterlevel sensor that detects when the water level in the toilet tank 120drops, thereby indicating the potential start of a flush cycle 100 aswill be described. In additional alternatives, the start of the flushcycle may be determined using a switch in the flapper, a motion detectorto detect the fall of the water level, a water flow detector associatedwith the flow of water into or out of the fill valve, or other devicesmay be employed.

In addition, the automated bowl fill system 140 determines an estimateof an amount of water that was prevented from flowing down the drain ofthe toilet during the flush cycle 100 due to the operation of theautomated bowl fill system 140. In particular, since the bowl fill flowis only allowed to occur for a predefined period of time in order tofill the bowl without losing any further water, it follows that witheach flush that the automated bowl fill system 140 is employed, apredefined amount of water is saved. Specifically, any water that mighthave potentially been lost in the third phase 109 (FIG. 1) will havebeen conserved. An estimate of the amount of water that is preventedfrom flowing down the drain in this manner is calculated for each flushcycle 100 by the automated bowl fill system 140. The estimate of theamount of water saved for each flush cycle 100 is stored in a memory ofthe automated bowl fill system 140 to facilitate this calculation.

Over time, the water savings is added up and displayed in the displaydevice 159 to indicate to users how much water is ultimately saved bythe operation of the device. In one embodiment, the automated bowl fillsystem 140 is powered by batteries. Consequently, it would beadvantageous that the display device 159 was not activated unless thetoilet tank lid had been removed from the toilet tank 120 so that a usermay see it at such time to save power. To conserve power, the automatedbowl fill system 140 includes the photo sensor 163 that signals to theautomated bowl fill system 140 to activate the display 159 when ambientlight is detected. When the toilet lid is placed over the toilet tank120, then there will be little or no light in the toilet tank 120.However, when the lid of the toilet tank 120 is removed, then light willstrike the photo sensor 163. In response to a signal from the photosensor 163, the automated bowl fill system 140 activates the display159, thereby displaying the amount of water saved by operation of theautomated bowl fill system 140 to consumers. Alternatively, otherapproaches may be employed to cause the display 159 to activate. Forexample, a motion detector may be employed to detect motion around theautomated bowl fill system 140. Also, a push button may be provided thatis depressed to activate the display 159. In any event, regardless ofhow the display 159 is activated, in one embodiment, it stays activatedfor a predefined period of time to conserve battery power.

In addition, the automated bowl fill system 140 includes a push button156 that may be manipulated by a user to calibrate the automated bowlfill system 140 for operation. Specifically, to calibrate the automatedbowl fill system 140, a user may flush the toilet tank and then pressthe push button 156 when the water substantially drains out of thetoilet tank 120 and the flapper falls down. The user may then press thepush button 156 after the toilet bowl has been filled while the waterlevel rises in the toilet tank 120. By virtue of the two consecutivetimes in which the push button 156 is depressed, the user thusestablishes the time period it takes for the toilet bowl to be refilled.In addition, other approaches to calibration of the automated bowl fillsystem 140 may be employed as will be discussed.

The automated bowl fill system 140 also includes a speaker 166 togenerate an alarm tone when a problem is detected with the operation ofthe toilet. For example, it may be the case that a leak develops in theflapper of the toilet, thereby periodically causing the water levelwithin the toilet tank 120 to begin to fall without the initiation of afull flush cycle 100. In such case, the water level will fall until thefloat 133 of the fill valve 123 drops a sufficient distance to open thefill valve 123, whereupon the toilet tank 120 is refilled. If the leakof the flapper persists, the toilet fill valve 123 would continuallycycle in this manner, causing a significant loss of water over timeuntil the leaking flapper was fixed.

If the fill valve is opened due to a leak, the automated bowl fillsystem 140 would initially believe that a new flush cycle 100 has beeninitiated. However, when the toilet tank 120 fails to fully drain, theautomated bowl fill system 140 detects such condition and determinesthat a leak may exist. In this respect, the automated bowl fill system140 is configured to determine whether an amount of water has drainedout of the toilet tank outside of a flush cycle 100. For example, in oneembodiment, the automated bowl fill system 140 detects the fact that thefill valve 123 is opened outside of a full flush cycle 100 using, forexample, a pressure sensor. In another embodiment, the automated bowlfill system 140 is configured to detect a drop in the water level in thetoilet tank 120 without the water level reaching a minimum level in thetoilet tank 120 using, for example, a water level sensor.

Given that such leaks in a toilet tank 120 tend to be periodic innature, and given that water fails to fully drain from the toilet tank120 during each of the repetitive “short cycles”, the automated bowlfill system 140 is configured to track a number of occurrences of apartial drain of the toilet tank 120. If a predefined number of theseshort cycles in which the toilet tank 120 is partially drained isdetected, then the automated bowl fill system 140 sets off the alarm 166to alert consumers that the toilet tank 120 is leaking and a significantwaste of water may result. Also, the network interface 169 allows theautomated bowl fill system 140 to communicate such problems to remotedevices, such as, for example, a server at a local municipality that canthen contact the consumer to inform them of the loss of water. In thisrespect, local municipalities may regulate the unnecessary waste ofwater due to the faulty operation of toilets.

With reference to FIG. 3, shown is one example of the automated bowlfill system 140 according to an embodiment of the present invention. Theautomated bowl fill system 140 includes a processor circuit having aprocessor 203 and a memory 206, both of which are coupled to a localinterface 209. In this respect, the local interface 209 may comprise,for example, a data bus with an accompanying control/address bus as canbe appreciated by those with ordinary skill in the art.

The memory 206 is defined herein as both volatile and nonvolatile memoryand data storage components. Volatile components are those that do notretain data values upon loss of power. Nonvolatile components are thosethat retain data upon a loss of power. Thus, the memory 206 maycomprise, for example, random access memory (RAM), read-only memory(ROM), hard disk drives, floppy disks accessed via an associated floppydisk drive, compact discs accessed via a compact disc drive, magnetictapes accessed via an appropriate tape drive, and/or other memorycomponents, or a combination of any two or more of these memorycomponents. In addition, the RAM may comprise, for example, staticrandom access memory (SRAM), dynamic random access memory (DRAM), ormagnetic random access memory (M RAM) and other such devices. The ROMmay comprise, for example, a programmable read-only memory (PROM), anerasable programmable read-only memory (EPROM), an electrically erasableprogrammable read-only memory (EEPROM), or other like memory device.

Stored in the memory 206 and executable by the processor 203 are anoperating system 213 and a bowl fill control system 216. In addition,other components or systems may be stored in the memory 206 andexecutable by the processor 203. The operating system 213 is executed tocontrol the allocation and usage of hardware resources such as thememory, processing time and peripheral devices in the automated bowlfill system 140. In this manner, the operating system 213 serves as thefoundation on which applications depend as is generally known by thosewith ordinary skill in the art. The bowl fill control system 216 isstored in the memory 206 and is executable by the processor 203 tocontrol the various functions of the automated bowl fill system 140. Inthis respect, the bowl fill control system 216 receives inputs from thevarious devices associated with the automated bowl fill system 140 andcontrols the operation of the bowl fill valve as will be described.

In this respect, the term “executable” means a program file that is in aform that can ultimately be run by the processor 203. Examples ofexecutable programs may be, for example, a compiled program that can betranslated into machine code in a format that can be loaded into arandom access portion of the memory 206 and run by the processor 203, orsource code that may be expressed in proper format such as object codethat is capable of being loaded into a of random access portion of thememory 206 and executed by the processor 203, etc. An executable programmay be stored in any portion or component of the memory 206 including,for example, random access memory, read-only memory, a hard drive,compact disk (CD), floppy disk, or other memory components.

The data communications interface 169 is coupled to the local interface209. In this respect, the data communications interface 169 facilitatescoupling to the network 219.

The automated bowl fill system 140 further comprises various componentsthat provide inputs to or are controlled by the bowl fill control system216. These components comprise, for example, a tank level sensor 223that is coupled to the local interface 209 through a level sensorinterface 226. Also, the automated bowl fill system 140 includes aninlet pressure sensor 229 that is coupled to the local interface 209through the pressure sensor interface 233. In one embodiment, theautomated bowl fill system 140 may employ the tank level sensor 223 inconjunction with the level sensor interface 226. Alternatively, in asecond embodiment, the automated bowl fill system 140 may employ theinlet pressure sensor 229 in conjunction with the pressure sensorinterface 233. In this respect, the automated bowl fill system 140employs either the tank level sensor 223 or the inlet pressure sensor229, where one of these components may not be included in the automatedbowl fill system 140 at all. In an additional alternative, the automatedbowl fill system 140 may employ both the tank level sensor 223 and theinlet pressure sensor 229 to obtain further information as to the stateof the toilet operation. In still other embodiments, other sensors mayinclude, for example, motion detectors, flapper switches, water flowdetectors, and other devices.

The automated bowl fill system 140 also includes a bowl fill valve 236having an inlet 237 and an outlet 238. The bowl fill valve 236 iscoupled to the local interface 209 by virtue of the valve controlinterface 239. In this respect, the bowl fill control system 216executed by the processor 203 causes the bowl fill valve 236 to open orclose as is appropriate. In addition, the automated bowl fill system 140includes an alarm circuit 243 that is coupled to the local interface 209by the alarm interface 246. The alarm circuit 243 may include, forexample, the alarm speaker 166. Alternatively, the alarm circuit 243 maydrive the display 159 in some manner so as to visually indicate aproblem exists. In addition, the automated bowl fill system 140 includesthe display device 159 that is coupled to the local interface 209 byvirtue of a display interface 249. Also, separate warning lights may beincluded in the automated bowl fill system 140 that provide informationas to alarm conditions, etc.

The automated bowl fill system 140 also includes the photo sensor 163that is coupled to the local interface 209 by virtue of a photo sensorinterface 253. In addition, the push button 156 is coupled to the localinterface 209 by a push button interface 256. In this respect, the pushbutton interface 256 may comprise de-bouncing circuitry and otherinterface circuitry as can be appreciated by those with ordinary skillin the art. The level sensor interface 226, pressure sensor interface233, photo sensor interface 253, and the push button interface 256, andother interfaces (not shown) include, for example, such registers,buffers, and/or other circuitry that make signals available on the localinterface 209 to be accessed by the bowl fill control system 216 asexecuted by the processor 203. Similarly, the valve control interface239, alarm interface 246, and display interface 249 include, forexample, such registers, buffers, and/or other circuitry that allow thebowl fill control system 216 to write various data commands thereto thatcause the bowl fill valve 236, alarm circuit 243, or display 159 to actas desired.

In addition, the automated bowl fill system 140 includes othercomponents such as, for example, batteries or other power source thatfacilitate the operation thereof. For example, in one embodiment theautomated bowl fill system 140 may include a power circuit that convertsstandard AC power into DC power necessary to power all the variouscomponents thereof. Alternatively, batteries may be employed. In oneembodiment, the bowl fill valve 236 may be, for example, anelectro-magnetic actuator valve such as those produced by ArichellTechnologies of West Newton, Mass.

In addition, in situations where batteries are employed, the photosensor 163 may provide input that facilitates whether various componentsof the automated bowl fill system 140 are powered up, thereby conservingbattery life as can be appreciated. Also, the automated bowl fill system140 may further comprise circuitry that can detect when the batteryvoltage is low, emitting an alarm such as a “chirp” to inform users thatthe batteries need to be replaced.

Referring next to FIGS. 4A, 4B, and 4C, shown is one example of a flowchart of the bowl fill control system 216 according to an embodiment ofthe present invention. Alternatively, the flow chart of FIG. 4 may beviewed as depicting steps of an example of a method implemented in theautomated bowl fill system 140 to control the operation thereof. Thefunctionality of the bowl fill control system 216 as depicted by theexample flow chart of FIGS. 4A-4C may be implemented, for example, in anobject oriented design or in some other programming architecture.Assuming the functionality is implemented in an object oriented design,then each block represents functionality that may be implemented in oneor more methods that are encapsulated in one or more objects. The bowlfill control system 216 may be implemented using any one of a number ofprogramming languages such as, for example, C, C++, Assembly, or otherprogramming languages as can be appreciated.

Beginning with box 303, first the bowl fill control system 216initializes its operation. In this respect, all variables and/orregisters and other components are set to initial variables and allcircuitry or other components is set in an initial state. Thereafter, inbox 306, the bowl fill control system 216 determines whether the bowlfill control system 216 is to be calibrated such that the time periodstracked by the bowl fill control system 216 are determined based on userinput. In this respect, the bowl fill control system 216 would enter acalibration mode in which various time periods are established as willbe described.

The determination as to whether the bowl fill control system 216 is toenter the calibration mode in box 306 is determined by whether the userpresses the push button and holds it down for a predefined period oftime such as, for example, three seconds or other time period. If thebowl fill control system 216 is to enter the calibration mode, then thebowl fill control system 216 proceeds to connector A. Otherwise, thebowl fill control system 216 proceeds to box 309.

In box 309, the bowl fill control system 216 determines whether a watersavings indicator is to be activated or deactivated. A water savingsindicator may be, for example, the display 159 or other such device. Ifthe water savings indicated is to be activated or deactivated, then thebowl fill control system 216 proceeds to box 313 in which the watersavings indicator is activated or deactivated as is appropriate. Whenactivated, the water savings indicator displays the amount of gallons ofwater saved by operation of the automated bowl fill system 140 for auser. In this manner, the user is informed of the actual benefit of theuse of the device. The water savings indicator is deactivated, forexample, when the lid is placed on the toilet tank 120. It may bedesirable to deactivate the indicator when it cannot be viewed so as toconserve battery power. Similarly, various components of the automatedbowl fill system 140 such as the input and output devices may be powereddown in a “sleep” mode to conserve battery life as can be appreciated.

Thereafter, the bowl fill control system 216 proceeds to box 316. If thewater savings indicator is not to be activated in box 309, then the bowlfill control system 216 proceeds to box 316 as shown. In determiningwhether to activate or deactivate the water savings indicator in box313, in one embodiment the bowl fill control system 216 consults aninput from the photo sensor interface 253 (FIG. 3) to determine whetherthe photo sensor 163 has detected light, thereby indicating whether thelid of the toilet tank 120 has been removed. If the lid has beenremoved, it is likely that the user can see the indicator. If no lightis detected, then it is likely the lid is in place on the toilet tank120 and that the user cannot see the indicator. Thus, the determinationthat the display 159 is to be activated or deactivated in box 309 may bebased upon the input from the photo sensor 163 (FIG. 3) as was describedabove. Alternatively, the water savings indicator such as the display159 may be activated by pressing the push button 156 for short durationless than the time it would take to initiate the calibration mode as setforth above with respect to box 306. Also, more than a single pushbutton 156 may be included in the automated bowl fill system 140 so thata button may be dedicated to the purpose of activating the display 159.In addition, it may be the case that a motion sensor is employed in theplace of the photo-sensor to detect motion in removing the lid of thetoilet and replacing the lid of the toilet. As an additionalalternative, the indicator may only be activated for a short period oftime when conditions indicate it should be activated. In such anembodiment, the indicator would automatically be deactivated after thetime period has passed.

Assuming that the bowl fill control system 216 has proceeded to box 316,then the bowl fill control system 216 determines whether a flush cycle100 has started. The start of a flush cycle 100 may be determined, forexample, in any one of a number of ways. For example, the start of aflush cycle 100 may be determined by detecting pressure at the inlet ofthe automated bowl fill system 140 based upon an input from the inletpressure sensor 229 (FIG. 3). Specifically, the pressure sensed by theinlet pressure sensor 229 would change from 0 PSI to some pressure valuewhen the fill valve is opened due to the beginning of a flush cycle 100.

Alternatively, the start of a flush cycle 100 may be determined basedupon an input from the tank level sensor 223. Specifically, a drop inthe water level in the toilet tank 120 may be detected, therebyindicating that a flush cycle 100 may have begun. In other embodiments,one may employ a float valve, motion detection with respect to the waterlevel itself, a rip cord on the handle of the toilet, or a switch thatis integrated with the operation of the flapper to indicate whether aflush cycle has started. Each of these devices may be configured toprovide an input into the automated bowl fill system 140.

In additional alternatives, the start of the flush cycle 100 may bedetermined using a motion detector that detects a drop in the waterlevel of the toilet tank 120, a flapper switch that indicates theflapper has opened, a water flow detector included at the inlet of thefill valve that detects water flow into the fill valve, or otherapproaches may be employed.

Assuming that a flush cycle 100 has not started in box 316, then thebowl fill control system 216 reverts back to box 306. Otherwise, thebowl fill control system 216 proceeds to box 319. In box 319, the bowlfill control system 216 begins the operation of a flush cycle timer.Thereafter, in box 323, the bowl fill control system 216 determineswhether the flush cycle 100 has ended prematurely. This may be the case,for example, if the flapper is leaking and the toilet tank has drainedby a small amount, thereby activating the bowl fill valve to refill thetank to its complete full state.

A premature end to the flush cycle 100 may be determined in one of anynumber of ways. For example, if the pressure as detected by the inletpressure sensor 229 suddenly disappears before an adequate time periodhas passed that would allow the toilet tank 120 to be completelydrained, thereby indicating that the toilet fill valve 123 has ceasedoperation and is closed, then it is an indication that the toilet fillvalve 123 is being activated to refill the toilet tank due to a leakrather than a flush of the toilet. Alternatively, if the tank levelsensor 223 detects that the toilet tank 120 is only partially drained ofwater before it begins to refill, then such is another indication thatthe flush cycle 100 has ended prematurely.

In this respect, in a normal flush cycle 100, the toilet tank 120 woulddrain within a predefined period of time. Assuming that the flush cycle100 has ended prematurely in box 323, then the bowl fill control system216 proceeds to box 326. Otherwise, the bowl fill control system 216progresses to box 329. In box 329, the bowl fill control system 216determines whether it is time to open the bowl fill valve 236. This timeoccurs when the toilet tank 120 has been substantially drained of waterand the flapper has closed thereby allowing the toilet tank 120 to berefilled. A specific time it takes for the toilet tank to substantiallydrain and for the flapper to fall is recorded in the memory 206 duringthe calibration mode of operation of the bowl fill control system 216 aswill be described. Assuming that the flush cycle timer has reached thetime at which the bowl fill valve 235 is to be opened, then the bowlfill control system 216 proceeds to box 333. Otherwise, the bowl fillcontrol system 216 reverts back to box 323 as shown. In box 333, thebowl fill control system 216 opens the bowl fill valve 236.

Reverting back to box 326, assuming that the flush cycle 100 has endedprematurely as determined in box 323, then in box 326 the bowl fillcontrol system 216 increments a flush cycle error count. The flush cycleerror count is a variable stored in the memory 206. Thereafter, in box336 the bowl fill control system 216 determines whether the flush cycleerror count has reached a predefined threshold value stored in thememory 206. If the flush cycle error count has reached the threshold asdetermined in box 336, then the bowl fill control system 216 proceeds tobox 339 in which an alarm is triggered and/or a message is generated andtransmitted to a remote device over the network 219 (FIG. 3) by way ofthe data communications interface 169 (FIG. 3). In this respect, remoteindividuals such as municipal government officials may be alerted to theexistence of the leak and the resulting waste of water.

Also, the alarm may be, for example, the activation of the audible alarmthrough the speaker 166 as described above. Also, a message may bedisplayed on the display device 159 (FIG. 2) that indicates that a leakexists. This message may provide a diagnosis as to the specific problem,thereby alerting the user as to the existence of the problem.Thereafter, in box 343, the bowl fill control system 216 waits to bereset by the user for normal operation. This is done assuming that theuser has fixed the leak and has reset the automated bowl fill system140. The reset would also stop the alarm condition from occurring. Inorder to reset the automated bowl fill system 140, the bowl fill controlsystem 216 may wait for the push button 156 to be pressed by a user,etc. Given that the alarm condition exists, the pressing of the pushbutton 156 for this purpose may be distinguished from pressing the samepush button 156 for other purposes described herein.

Once the automated bowl fill system 140 has been reset, then the bowlfill control system 216 reverts back to box 303. Thus, it is seen thatthe flush cycle error count is maintained in box 326 and that no alarmsor error messages are generated until the flush cycle error countreaches a predefined threshold. This prevents alarm conditions fromhappening prematurely. Specifically, alarm conditions occur only uponthe repeated cycling of the fill valve 123 due to a leak in the toiletsuch as, for example, a leak in the flapper. In this respect, the leakshould persist to the point where a significant loss of water results.This would prevent alarms and error messages from being triggeredprematurely or haphazardly, thereby hampering the operation of thetoilet and causing individuals to needlessly investigate potentialproblems.

Once the bowl fill valve 236 has been opened in box 333, then in box 353the bowl fill control system 216 determines when the bowl fill valve 236is to be closed. Specifically, the bowl fill valve 236 is opened for apredefined period of time necessary to fill the toilet bowl after theflapper has fallen and the toilet tank is refilling. This period of timeis tracked using the flush cycle timer that was initiated in box 319above. Specifically, at specific times during the running of the flushcycle timer, the bowl fill valve 236 is opened in box 333, and is closedin box 353. Assuming that the bowl fill valve 236 is to be closed as thetoilet bowl is sufficiently filled in box 353, then the bowl fillcontrol system 216 proceeds to box 356 in which the bowl fill controlsystem 216 causes the bowl fill valve 236 to close.

Thereafter, in box 359, the bowl fill control system 216 determineswhether the flush cycle timer has timed out for a specific flush cycle100. In particular, given that a flush cycle 100 takes a predefinedperiod of time to run to its completion, if the flush cycle 100 takeslonger than it should as determined in box 359, then the bowl fillcontrol system 216 proceeds to box 363. Otherwise, the bowl fill controlsystem 216 progresses to box 366.

A cycle time out 359 may be detected by virtue of the fact that thetoilet continues to operate even though the amount of time necessary fora complete flush cycle 100 has passed. This may determined, for example,if the inlet pressure sensor 229 still detects pressure at the inlet ofthe bowl fill valve 236 after the flush cycle 100 should have completed.Alternatively, the tank level sensor 223 (FIG. 3) can determine whethera cycle time out has occurred by virtue of the fact that the water levelin the tank has not risen to the full level within the time period ofthe flush cycle 100.

Assuming that the flush cycle has not yet timed out in box 359, then thebowl fill control system 216 proceeds to box 366 in which it isdetermined whether the flush cycle 100 has ended. This may bedetermined, for example, if the inlet pressure sensor 229 does notdetect any pressure at the bowl fill valve 236 which indicates that thefill valve 123 has closed, thereby indicating the end of the flush cycle100. Alternatively, the tank level sensor 223 may detect that the waterlevel in the toilet tank 120 has reached its maximum height, therebyindicating that the flush cycle 100 has ended.

Assuming that the flush cycle has ended as detected in box 366, then thebowl fill control system 216 proceeds to box 369. Otherwise, the bowlfill control system 216 reverts back to box 359. Thus, the bowl fillcontrol system 216 remains in a loop between boxes 359 and 366 waitingto determine whether the flush cycle has ended or whether a flush cycletime out occurs.

Assuming that the bowl fill control system 216 proceeds to box 369, thenthe bowl fill control system 216 resets the flush timer for the nextflush cycle 100. Thereafter, in box 373, the water savings counterstored in the memory 206 is incremented to account for the amount ofwater saved during the last flush cycle 100. The value stored in thewater savings counter is employed to calculate an estimate of the totalamount of water saved by the use of the automated bowl fill system 140for display to a user as described above. Thereafter, the bowl fillcontrol system 216 reverts back to box 306 as described with referenceto FIG. 4A.

Assuming that a cycle time out has occurred in box 359 where the fillvalve remains open even though the total time for a flush cycle 100 hastranspired, then in box 363 the bowl fill control system 216 opens thebowl fill valve 236. A cycle time out may occur due to any one of anumber of various conditions. Specifically, for example, while thetoilet tank 120 is being refilled during a given flush cycle, it may bethe case that the toilet is flushed a second time before the toilet tank120 is full. As such, the fill valve 123 will remain in an open statebeyond the initial flush cycle. This may occur multiple times.Alternatively, it may be the case that the flapper was pulled off of itsmounting by the flush and that the toilet is running continuously andthat the fill valve 123 is left in an open state. In yet anotheralternative, some other leak may exist in the toilet causing the fillvalve 123 to stay on. In addition, the fill valve itself may be stuck inan open state. In such case, water will run down the overflow tube and,ultimately, down the drain.

However, given that the cycle time out may occur due to a subsequentflush before the toilet tank 120 has been completely refilled, in box363 the bowl fill control system 216 opens the bowl fill valve 236.Thereafter, in box 376, a bowl fill control system 216 determineswhether the toilet has returned to an idle state such that the fillvalve 123 is closed. This would indicate that the toilet tank 120 hascompletely refilled and that the toilet is ready to operate the nextflush cycle 100 initiated by the next individual.

In order to determine whether the toilet has returned to the idle state,assuming that the inlet pressure sensor 229 is employed, then the bowlfill control system 216 may periodically cause the bowl fill valve 236to close for a moment to determine whether there is pressure at theinlet of the bowl fill valve 236 as sensed by the inlet pressure sensor229. Such momentary closing of the bowl fill valve 236 may occur, forexample, at predefined intervals such as every 30 seconds or other timeinterval as can be appreciated. Alternatively, if the tank level sensor223 is employed, it only need be determined whether the water level inthe toilet tank 120 has returned to its maximum height, therebyindicating that the toilet has entered an idle state. In an additionalalternative, a water flow sensor may be employed at the inlet of thefill valve that indicates that the toilet has entered into the idlestate by virtue of the fact that all flow of water into the fill valvehas ceased. Alternatively, other approaches may be employed to determineif the toilet is in an idle state. If the toilet has finally returned tothe idle state such that the fill valve 123 is in the off position inbox 376, then the bowl fill control system 216 proceeds to box 379.

In box 379, the bowl fill valve 236 is closed. Thereafter, the bowl fillcontrol system 216 proceeds to box 369 as shown. This reflects the factthat the toilet has been determined to be in an idle state due to thefact that the fill valve 123 is closed as determined in box 376.Therefore, the bowl fill valve 236 can be closed and the bowl fillcontrol system 216 can proceed to box 369 for normal operation. In thisrespect, the bowl fill valve 236 is thus left open until the toiletreturns to an idle state to ensure that the toilet bowl will be filledwith water as would be the case, for example, if multiple flushes occurback to back before individual flush cycles are completed.

However, if the toilet has not been detected to have returned to theidle state in box 376, then the bowl fill control system 216 proceeds tobox 383. In box 383, it is determined whether an alarm time out hasoccurred. In this respect, the flush cycle timer continues to run and ifit is determined that the toilet has not returned to the idle state suchthat the fill valve 123 remains open for a predefined period of timethat well exceeds a single flush cycle, then the bowl fill controlsystem 216 proceeds to box 386 in which a toilet malfunction alarm istriggered and/or a message is generated and transmitted to a remotedevice via the network 219 (FIG. 3). The predefined period of time maybe, for example, the amount of time necessary to accommodate apredefined number of full flush cycles that may occur back to back. Itmay be deemed unlikely, for example, that more than four or otherdesignated number of flush cycles 100 would occur back to back beforethe toilet returns to the idle state and the fill valve is closed.Consequently, the predefined period of time may be set to equal the timeof four or other number of consecutive flush cycles 100.

Alternatively, if, for example, the flapper has been pulled off of itsmounting, then the toilet will continually run resulting in the alarmtime out as determined in box 383. In this respect, the toiletmalfunction alarm and/or message transmitted to a remote device willalert users and authorities at the local municipality that the toilet ismalfunctioning resulting in a waste of water. The toilet malfunctionalarm may be, for example, a beeping sound transmitted by the speaker166 (FIG. 2) or other type of alarm device.

After the toilet malfunction alarm is triggered and/or the message issent in box 386, then the bowl fill control system 216 proceeds to box389 in which it is determined whether a reset condition has occurredsuch that a user has fixed the malfunction of the toilet and has resetthe bowl fill control system 216 for operation. This may be done, forexample, by pressing the push button 156 as described above. Thereafter,the bowl fill control system 216 reverts back to box 306 as shown.

With reference back to box 306, assuming that it is determined that thebowl fill control system 216 is to enter into calibration mode due tothe action by the user in pressing the push button 156 in an appropriatemanner or by virtue of some other action taken on the part of the user,then the bowl fill control system 216 proceeds to box 401. In box 401,the bowl fill valve 236 is opened for the calibration cycle. Then, inbox 403, the bowl fill control system 216 detects the start of the flushcycle 100. In this respect, to calibrate the automated bowl fill system140, the user places the bowl fill control system 216 in calibrationmode and then flushes the toilet.

The bowl fill control system 216 may detect the start of the flush cycleby detecting, for example, an amount of pressure at the inlet of thebowl fill valve 236 in the event that the inlet pressure sensor 229 isused. Alternatively, the bowl fill control system 216 can detect thestart of the flush cycle 100 by determining if the water level in thetoilet tank 120 has dropped using the tank level sensor 223. If thestart of the flush cycle is not detected in box 403, then the bowl fillcontrol system 216 proceeds to box 406. Otherwise, the bowl fill controlsystem 216 progresses to box 409.

In box 406, the bowl fill control system 216 determines whether a timeout has occurred such that the user has failed to flush the toilet. Ifnot, then the bowl fill control system 216 reverts back to box 403.Otherwise, the bowl fill control system 216 proceeds to box 413. In box413 an error is indicated such that the calibration of the automatedbowl fill system 140 has failed. In such case, the timing of the flushcycle and the specific timing events employed during the course of theoperation of the bowl fill control system 216 will be those that werepreviously entered in a previous calibration cycle, or alternatively,default timing values may be employed.

Referring back to box 403, if the start of a flush cycle 100 isdetected, then in box 409, the flush cycle timer is started. Thereafter,in box 416, it is determined whether the flapper has fallen down overthe opening in the toilet tank 120 (FIG. 2) such that the toilet tank120 has substantially drained of water. This may be detected, forexample, by a user's pressing the push button 156 when they see theflapper fall, by employing a switch included within the structure of theflapper itself, or by identifying when the water level has fallen to theminimum point based upon an input from the tank level sensor 223 whenthe tank level sensor is in use.

If the flapper has not fallen down as detected in box 416, then the bowlfill control system 216 proceeds to box 419 in which it is determinedwhether a time out has occurred. This time out may be predefined andstored in the memory 206. If a time out occurs, then the bowl fillcontrol system 216 proceeds to box 413 as shown. Otherwise, the bowlfill control system 216 reverts back to box 416. Assuming that theflapper is down as detected or determined in box 416, the bowl fillcontrol system 216 proceeds to box 423 in which the current time of thetimer is recorded so as to be used as the time at which the bowl fillvalve 236 is to be opened as set forth in box 329 above.

Thereafter, in box 426, the bowl fill control system 216 determineswhether the toilet bowl is full. This may determined, by a usermanipulation of the push button 156 when they see that the toilet bowlhas reached its fullest point. If the toilet bowl has not been indicatedas full as determined, for example, by the manual manipulation of thepush button 156 by a user in box 426, then the bowl fill control system216 proceeds to box 429 in which it is determined whether a time out hasoccurred such that the expected manual input has taken too long to bereceived.

If a time out occurs in box 429, then the bowl fill control system 216proceeds to box 413. Otherwise, the bowl fill control system 216 revertsback to box 426. Assuming that the user has indicated that the toiletbowl is full based upon the manual manipulation of the push button 156,then the bowl fill control system 216 proceeds to box 433 in which thetime is recorded. This time will be employed to determine when the bowlfill valve 236 is to be closed in box 353 as described above.

Thereafter, in box 436, the bowl fill control system 216 determineswhether the end of the flush cycle 100 has occurred. This may bedetermined, for example, by detecting whether the inlet pressure sensor229 senses pressure due to the fact that the fill valve 123 is open. Inthis respect, the bowl fill control system 216 may intermittently causethe bowl fill valve 236 to close for a brief period of time to determinewhether the inlet pressure sensor 229 detects a pressure head at theinlet of the bowl fill valve 236 as was described, for example, in box376 above.

Alternatively, in the event that the tank level sensor 223 is employed,the end of the flush cycle 100 may be determined by detecting whetherthe water level within the toilet tank 120 has reached its maximumheight. As an additional alternative, the user may press the push button156 at the time that the flush cycle ends to indicate the end of theflush cycle. Assuming that the flush cycle has not ended in box 436,then the bowl fill control system 216 proceeds to box 439 in which it isdetermined whether a time out has occurred such that the end of theflush cycle 100 did not occur when expected or within a reasonableperiod of time. In this respect, the time out may be a predefined valuestored in the memory 206. Assuming that a time out has occurred, thenthe bowl fill control system 216 proceeds to box 413. Otherwise, thebowl fill control system 216 reverts back to box 436.

Assuming that the end of the flush cycle 100 is detected in box 436,then the bowl fill control system 216 proceeds to box 443 in which thetotal time of the flush cycle 100 is recorded in the memory 206. In thisrespect, the time of the flush cycle 100 is employed to determinewhether a cycle time out has occurred in box 359 as described above.Thereafter, the bowl fill control system 216 proceeds to box 446 inwhich the bowl fill valve 236 is closed. Next, the bowl fill controlsystem 216 reverts back to box 303 to begin normal operation. Inaddition, after an error condition is indicated in box 413, the bowlfill control system 216 proceeds to box 446 as shown.

Although one example of the bowl fill control system 216 is discussed asbeing embodied in software or code executed by general purpose hardwareas discussed above, as an alternative the bowl fill control system 216may also be embodied in dedicated hardware or a combination ofsoftware/general purpose hardware and dedicated hardware. If embodied indedicated hardware, the bowl fill control system 216 can be implementedas a circuit or state machine that employs any one of or a combinationof a number of technologies. These technologies may include, but are notlimited to, discrete logic circuits having logic gates for implementingvarious logic functions upon an application of one or more data signals,application specific integrated circuits having appropriate logic gates,programmable gate arrays (PGA), field programmable gate arrays (FPGA),or other components, etc. Such technologies are generally well known bythose skilled in the art and, consequently, are not described in detailherein.

The flow chart of FIGS. 4A-4C show the architecture, functionality, andoperation of an implementation of the bowl fill control system 216. Ifembodied in software, each block may represent a module, segment, orportion of code that comprises program instructions to implement thespecified logical function(s). The program instructions may be embodiedin the form of source code that comprises human-readable statementswritten in a programming language or machine code that comprisesnumerical instructions recognizable by a suitable execution system suchas a processor in a computer system or other system. The machine codemay be converted from the source code, etc. If embodied in hardware,each block may represent a circuit or a number of interconnectedcircuits to implement the specified logical function(s).

Although the flow chart of FIGS. 4A-4C shows a specific order ofexecution, it is understood that the order of execution may differ fromthat which is depicted. For example, the order of execution of two ormore blocks may be scrambled relative to the order shown. Also, two ormore blocks shown in succession in FIGS. 4A-4C may be executedconcurrently or with partial concurrence. In addition, any number ofcounters, state variables, warning semaphores, or messages might beadded to the logical flow described herein, for purposes of enhancedutility, accounting, performance measurement, or providingtroubleshooting aids, etc. It is understood that all such variations arewithin the scope of the present invention.

Also, where the bowl fill control system 216 comprises software or code,it can be embodied in any computer-readable medium for use by or inconnection with an instruction execution system such as, for example, aprocessor in a computer system or other system. In this sense, the logicmay comprise, for example, statements including instructions anddeclarations that can be fetched from the computer-readable medium andexecuted by the instruction execution system. In the context of thepresent invention, a “computer-readable medium” can be any medium thatcan contain, store, or maintain the bowl fill control system 216 for useby or in connection with the instruction execution system. The computerreadable medium can comprise any one of many physical media such as, forexample, electronic, magnetic, optical, electromagnetic, infrared, orsemiconductor media. More specific examples of a suitablecomputer-readable medium would include, but are not limited to, magnetictapes, magnetic floppy diskettes, magnetic hard drives, or compactdiscs. Also, the computer-readable medium may be a random access memory(RAM) including, for example, static random access memory (SRAM) anddynamic random access memory (DRAM), or magnetic random access memory(MRAM). In addition, the computer-readable medium may be a read-onlymemory (ROM), a programmable read-only memory (PROM), an erasableprogrammable read-only memory (EPROM), an electrically erasableprogrammable read-only memory (EEPROM), or other type of memory device.

Although the invention is shown and described with respect to certainembodiments, it is obvious that equivalents and modifications will occurto others skilled in the art upon the reading and understanding of thespecification. The present invention includes all such equivalents andmodifications, and is limited only by the scope of the claims.

What is claimed is:
 1. A method of controlling the flow of water from afill valve in a toilet tank to a toilet bowl of a toilet using a bowlfill valve, wherein an inlet of the bowl fill valve is coupled to a bowlfill outlet of the fill valve and the outlet of the bowl fill valve ischanneled to the toilet bowl, the method comprising the steps of:determining when the toilet tank has been substantially drained of waterduring a flush cycle; and opening the bowl fill valve for a predefinedperiod of time after the toilet tank has been substantially drained ofwater to fill the toilet bowl of the toilet with water, wherein thepredefined period of time is less than a total time of the flush cycle.2. The method of claim 1, wherein the step of determining when thetoilet tank has been substantially drained of water during the flushcycle further comprises the step of tracking a period of time it takesfor the water to substantially drain out of the toilet tank with atimer.
 3. The method of claim 2, further comprising the step ofdetecting a start of the flush cycle, wherein operation of the timer isinitiated at the start of the flush cycle.
 4. The method of claim 3,wherein the step of detecting the start of the flush cycle furthercomprises the step of detecting the start of the flush cycle bydetecting a change in pressure at the inlet of the bowl fill valve. 5.The method of claim 3, wherein the step of detecting the start of theflush cycle further comprises the step of detecting the start of theflush cycle by detecting a drop in a water level in the toilet tank. 6.The method of claim 1, wherein the step of determining when the toilettank has been substantially drained of water during the flush cyclefurther comprises the step of determining whether a water level in thetoilet tank has fallen to a minimum level during the flush cycle.
 7. Themethod of claim 1, wherein the step of opening the bowl fill valve forthe predefined period of time after the toilet tank has beensubstantially drained of water to fill the toilet bowl of the toiletwith water, further comprises the steps of: opening the bowl fill valveafter the toilet tank has been substantially drained of water;initiating operation of a timer that tracks a passing of the predefinedperiod of time; and closing the bowl fill valve after a lapse of thepredefined period of time.
 8. A toilet water flow control system,comprising: a bowl fill valve having an inlet to receive water from abowl fill outlet of a fill valve in a toilet tank, and the bowl fillvalve having an outlet; and a control circuit operatively coupled to thebowl fill valve, the control circuit being configured to open the bowlfill valve for a predefined period of time during a flush cycle of atoilet to fill a toilet bowl of the toilet with water, wherein thepredefined period of time is less than a total time of the flush cycle.9. The toilet water flow control system of claim 8, further comprises apressure sensor that senses pressure at the inlet of the bowl fillvalve.
 10. The toilet water flow control system of claim 8, furthercomprises a water level sensor that is configured to be positioned inthe toilet tank, the water level sensor generating a signal that variesin response to a water level in the toilet tank.
 11. The toilet waterflow control system of claim 8, further comprises means for generating asignal that varies in response to a water level in the toilet tank. 12.The toilet water flow control system of claim 8, wherein the controlcircuit further comprises circuitry that determines when the toilet tankhas been substantially drained of water during the flush cycle.
 13. Thetoilet water flow control system of claim 12, wherein the circuitry thatdetermines when the toilet tank has been substantially drained of waterduring the flush cycle further comprises a timer that tracks a period oftime it takes for the water to substantially drain out of the toilettank.
 14. The toilet water flow control system of claim 12, wherein thecircuitry that determines when the toilet tank has been substantiallydrained of water during the flush cycle further comprises circuitry thatinitiates the operation of the timer upon detecting a start of the flushcycle.
 15. The toilet water flow control system of claim 14, furthercomprising means for detecting the start of the flush cycle.
 16. Thetoilet water flow control system of claim 12, wherein the circuitry thatdetermines when the toilet tank has been substantially drained of waterduring the flush cycle further comprises circuitry that determineswhether a water level in the toilet tank has fallen to a minimum levelduring a flush cycle.
 17. A toilet water flow control system,comprising: a processor circuit having a processor and a memory; a bowlfill valve operatively coupled to the processor circuit, the bowl fillvalve having an inlet to receive water from a bowl fill outlet of a fillvalve in a toilet tank, and the bowl fill valve having an outlet; aninput device operatively coupled to the processor circuit; and controllogic stored in the memory and executable by the processor, the controllogic further comprising logic that opens the bowl fill valve for apredefined period of time during a flush cycle of a toilet to fill atoilet bowl of the toilet with water, wherein the predefined period oftime is less than a total time of the flush cycle.
 18. The toilet waterflow control system of claim 17, wherein the input device furthercomprises a pressure sensor, the pressure sensor being positioned tosense a pressure at the inlet of the bowl fill valve.
 19. The toiletwater flow control system of claim 17, wherein the input device furthercomprises a water level sensor, the water level sensor being configuredfor positioning in the toilet tank, the water level sensor generating asignal that varies in response to a water level in the toilet tank. 20.The toilet water flow control system of claim 17, wherein the controllogic further comprises logic that determines when the toilet tank hasbeen substantially drained of water during the flush cycle.